Difference between revisions of "Resource delete"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
= Resource_delete =
+
= Resource_delete =
[[Category:Resource_Functions]]
+
 
 +
Delete a specific resource.
 +
 
 +
*User must have administrator right on the resource which will be deleted.
 +
*And user also must have navigation access to that resource.
  
Delete a specific resource.
+
<br>
*User must have administrator right on the resource which will be deleted.
 
*And user also must have navigation access to that resource.
 
  
 +
=== Syntax  ===
  
===Syntax===
 
 
Resource_delete(ResourceID);  
 
Resource_delete(ResourceID);  
  
 +
<br>
 +
 +
=== Arguments  ===
 +
 +
ResourceID: is a number. It is the resource id of resource.
 +
 +
<br>
 +
 +
=== Return type  ===
  
===Arguments===
+
Boolean
ResourceID: is a number. It is the resource id of resource.
 
  
 +
*true if deleted and child resources deleted also.
  
===Return type===
+
<br>
Boolean
 
*true if deleted and child resources deleted also.
 
  
 +
=== Examples  ===
  
===Examples===
+
bool RDelstatus =Resource_delete(37278397); <br> print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true
  
bool RDelstatus =Resource_delete(37278397); <br>
+
[[Category:Resource_Functions]]
print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true
+
__NOTOC__

Revision as of 09:29, 9 November 2011

Resource_delete

Delete a specific resource.

  • User must have administrator right on the resource which will be deleted.
  • And user also must have navigation access to that resource.


Syntax

Resource_delete(ResourceID);


Arguments

ResourceID: is a number. It is the resource id of resource.


Return type

Boolean

  • true if deleted and child resources deleted also.


Examples

bool RDelstatus =Resource_delete(37278397);
print(RDelstatus);     // result: true