Delete one artifacts folder and sync related meta
const url = 'https://example.com/wp-json/wp2/media-converter/v1/attachments/1/artifacts/sources';const options = {method: 'DELETE', headers: {'X-WP-Nonce': '<X-WP-Nonce>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/wp-json/wp2/media-converter/v1/attachments/1/artifacts/sources \ --header 'X-WP-Nonce: <X-WP-Nonce>'Deletes one artifacts folder and syncs related attachment meta. The response is the updated artifacts list.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Numeric entity id.
Artifacts folder: sources, subtitles, chapters, thumbnails, stills.
Responses
Section titled “Responses”Artifact listing after folder delete.
object
Video attachment ID.
Movie basename without extension.
Files in the sources folder (HLS/MP4, etc.).
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Subtitle files on disk.
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Chapter files on disk.
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Seekbar sprite/VTT files.
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Still frames (*_thumbN.jpg).
object
File name relative to the artifacts folder.
Public file URL.
File size in bytes.
Map of format key → exists/url.
object
object
True if this format file already exists on disk.
Format file URL, or an empty string.
Poster URL from attachment meta (may be empty).
Examplegenerated
{ "attachment_id": 1, "basename": "example", "sources": [ { "name": "example", "url": "example", "bytes": 1 } ], "subtitles": [ { "name": "example", "url": "example", "bytes": 1 } ], "chapters": [ { "name": "example", "url": "example", "bytes": 1 } ], "thumbnails": [ { "name": "example", "url": "example", "bytes": 1 } ], "stills": [ { "name": "example", "url": "example", "bytes": 1 } ], "formats": { "additionalProperty": { "exists": true, "url": "example" } }, "poster": "example"}Invalid_folder
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}Not authenticated. WordPress REST: rest_not_logged_in / rest_forbidden. Use cookie + X-WP-Nonce or Application Password.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}