Overview
This endpoint permanently deletes a series from the MediaStream platform. This action will also affect all associated seasons and episodes.
This action is irreversible. Deleting a series will remove all associated seasons, episodes, and metadata. Make sure you want to permanently delete this content before proceeding.
Authentication
This endpoint requires MediaStream API authentication using the X-API-Token header.
Your MediaStream API authentication token
Accept
string
default:"application/json"
Content type for the response
Path Parameters
The unique identifier of the series to delete
Response
The response structure depends on the MediaStream platform API. Typically returns a success confirmation or the deleted series object.
Indicates whether the deletion was successful
Confirmation message about the deletion
The ID of the deleted series
Example Request
curl -X DELETE "https://your-domain.com/api/series/507f1f77bcf86cd799439011" \
-H "X-API-Token: your_api_token" \
-H "Accept: application/json"
Example Response
{
"success": true,
"message": "Series deleted successfully",
"_id": "507f1f77bcf86cd799439011"
}
Response Status Codes
Series successfully deleted
Series successfully deleted (no content returned)
Invalid or missing API token
Series with the specified ID does not exist or has already been deleted
An error occurred while deleting the series from MediaStream
Cascade Effects
When a series is deleted, the following related data is typically affected:
- Seasons: All seasons associated with the series
- Episodes: All episodes in all seasons of the series
- Images: All images associated with the series
- Metadata: All metadata and custom fields associated with the series
The exact cascade behavior depends on the MediaStream platform configuration. Some platforms may soft-delete content or move it to a trash/archive system rather than permanently deleting it.
Implementation Notes
- The endpoint proxies the delete request to the MediaStream platform API at
/show/{showId}
- Series are internally referred to as “shows” in the route parameters and backend code
- The Laravel route uses the
destroy method which corresponds to the DELETE HTTP method
- All deletion logic is handled by the MediaStream platform
Best Practices
- Always confirm with the user before deleting a series
- Consider implementing a soft-delete or archive feature if you need to recover deleted content
- Log deletion events for audit purposes
- Check for related content (seasons, episodes) and warn users before deletion
- Implement proper authorization to ensure only authorized users can delete series
- Consider rate limiting to prevent accidental mass deletions