Difference between revisions of "Resource delete"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
'''Resource_delete'''<br>;  
+
'''Resource_delete'''<br>&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; Delete a resource.<br> &nbsp;&nbsp; - User must have full access to that resource or error will return false if no access to child resources or problem with deleting.<br> &nbsp;&nbsp; - And user must have nav access to the right xxx_delete also.  
<br>&nbsp;&nbsp;&nbsp;&nbsp; Delete a resource.<br> &nbsp;&nbsp; - User must have full access to that resource or error will return false if no access to child resources or problem with deleting.<br> &nbsp;&nbsp; - And user must have nav access to the right xxx_delete also.  
 
  
 
'''Syntax'''  
 
'''Syntax'''  
Line 6: Line 5:
 
'''&nbsp;'''&nbsp;'''&nbsp;''' Resource_delete(ResourceID);  
 
'''&nbsp;'''&nbsp;'''&nbsp;''' Resource_delete(ResourceID);  
  
<br> '''Arguments''' <br>ResourceID: is a number. <br>  
+
&nbsp;'''Arguments''' <br>ResourceID: is a number. <br>  
  
 
'''Return type''' bool. + true if deleted and child resources deleted also.  
 
'''Return type''' bool. + true if deleted and child resources deleted also.  

Revision as of 08:36, 10 October 2011

Resource_delete
 
     Delete a resource.
   - User must have full access to that resource or error will return false if no access to child resources or problem with deleting.
   - And user must have nav access to the right xxx_delete also.

Syntax

    Resource_delete(ResourceID);

 Arguments
ResourceID: is a number.

Return type bool. + true if deleted and child resources deleted also.

Examples

bool RDelstatus =Resource_delete(37278397);

print(RDelstatus);