Delete Plugin Modules API
This API call bulk soft-deletes plugin modules from the module library. Modules are marked as deleted and are not physically removed from the database.
Authentication: Plugin-based authentication using custom headers. Requires a valid plugin authentication token.
Authorization: Only users with "API" role are permitted to use this endpoint. Other roles will receive a 403 Forbidden response.
Ownership Validation: Each module ID in the request is validated to ensure it belongs to the authenticated plugin. If any module belongs to a different plugin, the entire request is rejected with 403 and no modules are deleted.
Behaviour:
- Modules that belong to the plugin are soft-deleted (marked as
deleted = true). -
If any
moduleIdbelongs to another plugin, the request is rejected with 403 and no module is deleted. - Non-existent
moduleIdsare silently skipped.