system.kanoa.cmms.deleteImage(chkImageId, userId)
Deletes a procedure step check image record from the CMMS image table. This permanently removes the stored image and thumbnail byte data associated with the given image id; it does not delete the procedure step check the image was attached to.
Parameters
chkImageId Integer: Id of image to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
msg String None if success
Example
# Remove an image that was mistakenly attached to a procedure step check
chkImageId = 8830
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, msg = system.kanoa.cmms.deleteImage(chkImageId, userId)
print recordsModified, msg