deleteMessages

Description

Handles deleting of personal messages

Syntax

void deleteMessages (mixed $personal_messages[, mixed $folder[, mixed $owner]])



Parameter $personal_messages

Expected type: Mixed
Description: Which PMs we want to delete

Allowed types for $personal_messages
Allowed values Description
Array of Integers The IDs of specific PMs to delete
Null Delete all PMs in the specified folder



Parameter $folder

Expected type: Mixed
Description: Which folder to delete PMs from.

Allowed types for $folder
Allowed values Description
Null Deletes all (specified) PMs from both the inbox and outbox.
String Set to 'outbox' to delete only from the outbox or something else to delete from the inbox.



Parameter $owner

Expected type: Mixed
Description: The ID of the user(s) whose PMs we want to delete.

Allowed types for $owner
Allowed values Description
Null Delete the current user's PMs
Integer The IDs of one or more members whose PMs should be deleted


Notes

  • Deletes one or more PMs based on the specified criteria
Advertisement: